<template>
  <div class="project">
    <div v-for="item in proList" :key="item.id">
      <template>
        <item-project :obj = 'item'></item-project>
      </template>
    </div>
  </div>
</template>

<script>
import ItemProject from './ItemProject.vue'
export default {
  props: {
    projectList: Array
  },
  computed: {
    proList: function () {
      console.log(this.projectList)
      return this.projectList
    }
  },
  name: 'IndexProject',
  components: {
    ItemProject
  }
}
</script>

<style scoped lang='scss'>
.project {
  width: 1200px;
  height: 300px;
  margin:0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
</style>
